<?php
namespace app\index\controller;
use app\chat\model\ChatMsg;
class Index extends Base
{
    public function index()
    {
        _pr(ChatMsg::isBan('haha1111'));
        return ChatMsg::isBan('haha');
    }

    public function close () {
        if(config('site_open')==0) {
            $this->error(config('site_close_reason'),'','',300);
        }
        if(input('mall_id') && config('shop_open')==0) {
            $this->error(config('shop_close_reason'),'','',300);
        }
    }
}
